/**
 * Created by Administrator on 2017/10/31.
 */
const path = require("path");


module.exports = {
    entry:"./src/index.js",
    output:{
        filename:"bundle.js",
        path:path.resolve(__dirname,'dist')   //注意两个下划线
    },
    module:{
        rules:[
            {
                test:/\.css$/,                //import
                use:[
                    'style-loader',
                    'css-loader'
                ]
            },
            {
                test:/\.(png|svg|jpg|git)$/,
                use:[
                    'file-loader'
                ]
            },
            {
                test:/\.(woff|woff2|eot|ttf|otf)$/,
                use:[
                    'file-loader'
                ]
            },
            {
                test:/\.(csv|tsv)$/,
                use:[
                    'csv-loader'
                ]
            },
            {
                test:/\.(xml|ktr)$/,
                use:[
                    'xml-loader'
                ]
            }
        ]
    }
};